package com.zhiyou100.test.test04.demo;

/**
 * @author yang
 * @className SimpleProxy
 * @packageName com.zhiyou100.test.test04.demo
 * @Description TODO 实现 Interface
 * @date 2020-08-11 11:45
 */
public class SimpleProxy implements Interface {

    private Interface proxied;

    public SimpleProxy(Interface proxied) {
        this.proxied = proxied;
    }

    @Override
    public void doSomething() {
        System.out.println("simpleProxy doSomething");
        proxied.doSomething();
    }

    @Override
    public void somethingsElse(String arg) {
        System.out.println("simpleProxy somethingElse" + arg);
        proxied.somethingsElse(arg);
    }
}
